import 'package:flutter/material.dart';
import 'package:flutter_aggregate/router/app_routers.dart';
import 'package:get/get.dart';

import 'online_home_item_card.dart';

class OnlineHomeItemList extends StatelessWidget {
  const OnlineHomeItemList({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      scrollDirection: Axis.horizontal,
      child: Row(
        children: [
          OnlineHomeItemCard(
            title: 'Burger & Beer', 
            shopName: "MacDonald's", 
            svgSrc: 'assets/online/icons/burger_beer.svg', 
            press: () {
              Get.toNamed('${AppRouters.onlineHome}${AppRouters.onlineDetail}');
            }
          ),
          OnlineHomeItemCard(
            title: 'Burger & Beer', 
            shopName: "MacDonald's", 
            svgSrc: 'assets/online/icons/chinese_noodles.svg', 
            press: () {
              Get.toNamed('${AppRouters.onlineHome}${AppRouters.onlineDetail}');
            }
          ),
          OnlineHomeItemCard(
            title: 'Burger & Beer', 
            shopName: "MacDonald's", 
            svgSrc: 'assets/online/icons/burger_beer.svg', 
            press: () {
              Get.toNamed('${AppRouters.onlineHome}${AppRouters.onlineDetail}');
            }
          )
        ],
      ),
    );
  }
}